package com.webdiy.sm.action;

import com.sys.plat.web.core.ActionContext;
import com.sys.plat.web.core.BaseAction;
import com.sys.tool.FileTool;
import com.webdiy.sm.iface.SmViewIface;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2009-8-15
 * Time: 17:17:12
 * To change this template use File | Settings | File Templates.
 */
public class SmViewAction extends BaseAction{

    public String test() {
        FileTool ft = new FileTool(FileTool.getWebProjectPath());
        SmViewIface service = (SmViewIface) ActionContext.getBean("SmViewImpl");
        service.saveCode();


        /*System.out.println(ft.getPath());
        System.out.println(FileTool.getWebProjectPath());
        System.out.println(ActionContext.getRequest().getContextPath() + "111");*/

//        ft.createFolders("test\\test2\\test3");

//        for (String str : ft.getFile()) {
//            System.out.println(str);
//        }
        return "";
    }
}
